package com.leather.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.*;

/**
*
*  @author kevin
*/
@Data
@TableName("question")
public class Question implements Serializable {

    private static final long serialVersionUID = 1552291062470L;


    /**
    * 主键
    * 默认自增主键
    * isNullAble:0
    */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
    * 问题标题
    * isNullAble:0
    */
    private String questionTitle;

    /**
    * 问题具体描述
    * isNullAble:0
    */
    private String questionDesc;

    /**
    * 
    * isNullAble:1
    */
    private String questionImgUrl;

    /**
    * 创建时间
    * isNullAble:1
    */
    private Date createTime;

    /**
    * 点赞数
    * isNullAble:1,defaultVal:0
    */
    private Integer stars;

    /**
    * 回答数
    * isNullAble:1,defaultVal:0
    */
    private Integer answers;

    /**
    * 提出问题用户id
    * isNullAble:1
    */
    private Integer userId;


}
